#ifndef FASTMOVEWIDGET_H
#define FASTMOVEWIDGET_H

#include <QWidget>
#include <QPushButton>
#include <QGridLayout>
#include <QLabel>
class FastMoveWidget : public QWidget
{
    Q_OBJECT
public:
    explicit FastMoveWidget(QWidget *parent = 0);

signals:
    void gotoPos(double x, double y);
    void fetchPos(int i);

public slots:
    void setPos(int i, double x, double y);

private slots:
    void on_moveTo();
    void on_fetchPos();
private:
    void initContent();
    void initConnection();

    QGridLayout *gridLayout;
    QLabel *numLabel[10];
    QLabel *XPosLabel[10];
    QLabel *YPosLabel[10];
    QPushButton *MoveToButton[10];
    QPushButton *FetchPosButton[10];
};

#endif // FASTMOVEWIDGET_H
